package com.hwh.bootdemoweb.pojo;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.UUID;

@Data
@ToString
@ConfigurationProperties(prefix = "car")
@Component
public class Car {
    private String brand;
    private BigDecimal price;

    public static void main(String[] args) {
        for (int i = 0; i < 100; i++) {
            System.out.println(UUID.randomUUID());
        }
    }
}

